<?php
class Admin_Model_Changepass extends Zend_Db_Table{
	protected $_name = 'user';
	protected $_primary = 'userid';
	
	public function saveItem($arrParam = null, $option = null){
		
		if($option['task'] == 'admin-edit'){
                    $encode                 = new Australian_Encode();
                    $username               =  $arrParam['userinfor']['username']; 
                    $where                  = " username = '$username' ";
                    $row                    = $this->fetchRow($where);
                    $row->password          = $encode->password($arrParam['new_password']);
                    $row->save();
		}
	}
}